package com.demo.gulimall.common.to.es;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Chen Yuan
 * @create 2023-05-26  11:48
 */
@Data
public class ProductEsTo implements Serializable {

	private Long skuId;

	private Long spuId;

	private String skuTitle;

	private BigDecimal skuPrice;

	private String skuImg;

	private Long saleCount;

	/** 是否有库存, 库存数量变更不需要更新索引, 只有库存没有货了才更新 */
	private Boolean hasStock;

	private Long hotScore;

	private Long brandId;

	private String brandName;

	private String brandImg;

	private Long catalogId;

	private String catalogName;

	private List<AttrEsTo> attrs;

}
